﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace WCFMINERP.Contracts.DataContracts
{

    [Serializable]
    [DataContract]
    [KnownType(typeof(int))]
    [KnownType(typeof(string))]
    [KnownType(typeof(bool))]
    public class ApplationParas
    {
        [DataMember]
        public int ShopID { get;private set; }//商户id
        [DataMember]
        public string ShopName { get; private set; }//商户名字
        [DataMember]
        public string UName{get;private set;}//登录名字
        [DataMember]
        public string UPWD { get;private set;  }//登录密码
        [DataMember]
        public string SHACODE { get;private set;  }//授权码
        [DataMember]
        public string ClientVersion { get;private set;  }//本地客户端版本号用文件形式存储各个XML的版本号
        [DataMember]
        public string ProductVersion { get; private set; }//本地产品信息的版本号
        [DataMember]
        public bool IsOnline { get; set; }//是否在线
        [DataMember]
        public string MachineName { get; private set; }//当前机器名称
        //Dictionary<int, string> aaa = new Dictionary<int, string>();
        public ApplationParas (int shopid,string shopName,string uname,string upwd,string shacode,string clientVersion,bool isonline,string machinename)
        {
            this.ShopID=shopid;
            this.ShopName = shopName;
            this.UName = uname;
            this.UPWD = upwd;
            this.SHACODE = shacode;
            this.ClientVersion = clientVersion;
            this.MachineName = machinename;
    }
        public ApplationParas()
        {
 
        }

    }
}
